<script setup>
import { ref } from 'vue'
import { useRouter } from 'vue-router'

const router = useRouter()

function jump() {
  router.push({ path: '/main' })
}
</script>

<template>
  <div id="login">
    <div className="login-d">
      <el-input v-model="username"
                placeholder="账号" />
      <el-input v-model="password"
                placeholder="密码" />
    </div>
    <el-button @click="jump">登录</el-button>
  </div>
</template>

<style lang="scss">
#login {
}
</style>
